package cn.com.dingtek.genius.manager.server.repository.db.manager;

import cn.com.dingtek.genius.manager.server.repository.db.entity.CompanyPush;
import cn.com.dingtek.genius.manager.server.repository.db.mapper.CompanyPushMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class CompanyPushManager extends ServiceImpl<CompanyPushMapper, CompanyPush> {

    public CompanyPush getByCompanyId(Long id) {
        return getOne(Wrappers.<CompanyPush>query().eq("company_id", id));
    }
}
